﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace monoClient.renderer
{
    public class BackGroundRenderer:CommandExecutor
    {
        private Texture2D BackgroundTexture;

        private GraphicsDeviceManager Graphics;

        public BackGroundRenderer(ContentManager content, GraphicsDeviceManager graphics)
        {
            BackgroundTexture = content.Load<Texture2D>("Background_FrontLawn");
            Graphics = graphics;
        }

        public void Update(GameTime gameTime, MouseState mouseState, MouseState oldMouseState)
        {
            
        }

        public void Draw(GameTime gameTime, SpriteBatch _spriteBatch)
        {
            _spriteBatch.Draw(
                BackgroundTexture,
                new Rectangle(0,0,Graphics.PreferredBackBufferWidth,
                
                    Graphics.PreferredBackBufferHeight),
                Color.White
            );
        }
    }
}